﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ClubRegistrationForm.ascx.cs" Inherits="PlatypusPlanner.UserControls.ClubRegistrationForm" %>

<!-- This is the Club Regitration Form
        Has Validation Summary and connects to SQL Database PlatypusPlanner pp_user -->

<div>
    <form class="form-horizontal" action="ClubRegistrationForm.ascx">
        <div class="control-group">
            <div class="controls">
                <asp:ValidationSummary ID="ValidationSummary" runat="server" />
            </div>
        </div>
         <div class="control-group"> <!-- This line here is the start -->
            <label class="control-label" for="inputClubName">Club Name</label>
                <div class="controls">
                    <asp:TextBox class="span5" EnableViewState="true" ViewStateMode="Enabled" ID="clubNameTxt" runat="server" placeholder="Club Name" ToolTip="Type the name of your club here" MaxLength="50"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv" runat="server" ControlToValidate="clubnameTxt" ErrorMessage="Must enter a club name"></asp:RequiredFieldValidator>
               </div>
          </div> <!-- This line here is the end -->

        <div class="control-group">
            <label class="control_label" for="inputClubBio">Club Biography</label>
                <div class="controls">
                    <asp:TextBox class="span5" EnableViewState="true" ViewStateMode="Enabled" ID="ClubBioTxt" runat="server" placeholder="ClubBio" ToolTip="Type the club biography here"></asp:TextBox>
                </div>
           </div>
        <div class="control-group">
            <label class="control_label" for="inputWebURL">Website URL</label>
                <div class="controls">
                    <asp:TextBox class="span5" EnableViewState="true" ViewStateMode="Enabled" ID="WebURLTxt" runat="server" placeholder="ClubURL" ToolTip="Type the desired Club URL here"></asp:TextBox>
                </div>
        </div>
        <div class="control-group">
            <label class="control_label" for="inputClubAddress">Club Address</label>
                <div class="controls">
                    <asp:TextBox class="span5" EnableViewState="true" ViewStateMode="Enabled" ID="AddressTxt" runat="server" placeholder="Club Address" ToolTip="Type the club address here"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAddress" runat="server" ControlToValidate="AddressTxt" ErrorMessage="Must enter address here"></asp:RequiredFieldValidator>
                </div>
        </div>
        <div class="control-group">
            <label class="control_label" for="inputClubCity">Club City</label>
                <div class="controls">
                    <asp:TextBox class="span5" EnableViewState="true" ViewStateMode="Enabled" ID="CityTxt" runat="server" placeholder="Club City" ToolTip="Type the club city here"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCity" runat="server" ControlToValidate="CityTxt" ErrorMessage="Must enter state here"></asp:RequiredFieldValidator>
                </div>
        </div>
        <div class="control-group">
            <label class="control_label" for="inputClubState">Club State</label>
                <div class="controls">
                    <asp:TextBox class="span5" EnableViewState="true" ViewStateMode="Enabled" ID="StateTxt" runat="server" placeholder="Club State" ToolTip="Type the club state here"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvState" runat="server" ControlToValidate="StateTxt" ErrorMessage="Must enter state here"></asp:RequiredFieldValidator>
                </div>
        </div>
        <div class="control-group">
            <label class="control_label" for="inputClubZip">Club Zip Code</label>
                <div class="controls">
                    <asp:TextBox class="span5" EnableViewState="true" ViewStateMode="Enabled" ID="ZipTxt" runat="server" placeholder="Club Zip" ToolTip="Type the club Zip Code here"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvZip" runat="server" ControlToValidate="ZipTxt" ErrorMessage="Must enter Zip here"></asp:RequiredFieldValidator>
                </div>
        </div>

        <div class="control-group">
            <div class="controls">
                <label class="checkbox">
                    <input type="checkbox"> I did not read the terms of agreement but agree anyways.
                </label>
                <asp:Button CssClass="btn" ID="submit" runat="server" Text="Submit" OnClick="submit_Click" />           
                 </div> 
            
            </div>
        <asp:Label CssClass="alert alert-error" Visible="false" runat="server" ID="errorMessageLbl"></asp:Label>
    </form>
</div>
